package net.esj.basic.dao.ann.criterion;


public class SelectionCriterion  implements Criterion{
	
	private ColumnCriterion column;
	
	private TableCriterion table;

	public SelectionCriterion(ColumnCriterion column, TableCriterion table) {
		super();
		this.column = column;
		this.table = table;
	}

	@Override
	public String toSql() {
		return  table.getAlias()+"."+column.getValue().getColumnName()+" "+column.getAlias();
	}
	
}
